home *** CD-ROM | disk | FTP | other *** search
/ Games of Daze / Infomagic - Games of Daze (Summer 1995) (Disc 1 of 2).iso / x2ftp / msdos / libs / knowhow4 / dim.h < prev    next >
C/C++ Source or Header  |  1994-10-10  |  689b  |  21 lines

  1. // "Rubber" mouse / kbd driven figures like circle, rectangle and line
  2.  
  3. #ifndef __DIMENTIONS_H
  4. #define __DIMENTIONS_H
  5.  
  6. #include "graphpp.h"
  7. #include "colors.h"
  8.  
  9. enum { FIXED = 0, MOVE = 1, RESIZE = 2, SCROLL_VERT = 4, SCROLL_HORIZ = 8 };
  10. enum { FIG_RECTANGLE, FIG_LINE, FIG_CIRCLE, FIG_PCX };
  11.  
  12. extern rect get_dim(int fig_type,          // RECTANGLE, CIRCLE, LINE
  13.             int action_type,
  14.             rect r = rect(0, 0, getmaxx(), getmaxy()), // work area
  15.             rect src = rect(0, 0,
  16.             pScreenSet->cell_width, pScreenSet->cell_height),
  17.             loc minsize = loc(0, 0),
  18.             loc step = loc(pScreenSet->cell_width,
  19.                 pScreenSet->cell_height));
  20.  
  21. #endif  __DIMENTIONS_H